<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Config;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function _initialize()
    {
        parent::_initialize();
    }

    /**
     * 获取系统信息
     *
     */
    public function getSystemInfo()
    {
        $data = Config::get('site');
        $data['share_icon'] = cdnurl($data['share_icon'],true);

        $config = get_addon_config('third');
        $data['wxh5_appid'] = $config['wechat']['app_id'];
        

        $this->success('请求成功',$data);
    }
}
